﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.Updater.Server.Engine.Exceptions
{
    /// <summary>
    /// Classe de exception a ser disparada quando um pacote fof invalido
    /// </summary>
    public class InvalidPackageException : Exception
    {
        public InvalidPackageException()
            : base()
        {
        }

        public InvalidPackageException(string message, string package) 
            : base("Pacote Inválido:" + package + Environment.NewLine + "Detalhes:" + message)
        {
        }

        public InvalidPackageException(string message, string package, Exception innerException)
            : base("Pacote Inválido:" + package + Environment.NewLine + "Detalhes:" + message, innerException)
        {
        }
    }
}
